package com.yh.homestay.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogIdIsNull() {
            addCriterion("log_id is null");
            return (Criteria) this;
        }

        public Criteria andLogIdIsNotNull() {
            addCriterion("log_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogIdEqualTo(Integer value) {
            addCriterion("log_id =", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotEqualTo(Integer value) {
            addCriterion("log_id <>", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdGreaterThan(Integer value) {
            addCriterion("log_id >", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("log_id >=", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLessThan(Integer value) {
            addCriterion("log_id <", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLessThanOrEqualTo(Integer value) {
            addCriterion("log_id <=", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdIn(List<Integer> values) {
            addCriterion("log_id in", values, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotIn(List<Integer> values) {
            addCriterion("log_id not in", values, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdBetween(Integer value1, Integer value2) {
            addCriterion("log_id between", value1, value2, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotBetween(Integer value1, Integer value2) {
            addCriterion("log_id not between", value1, value2, "logId");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountIsNull() {
            addCriterion("log_access_account is null");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountIsNotNull() {
            addCriterion("log_access_account is not null");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountEqualTo(String value) {
            addCriterion("log_access_account =", value, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountNotEqualTo(String value) {
            addCriterion("log_access_account <>", value, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountGreaterThan(String value) {
            addCriterion("log_access_account >", value, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountGreaterThanOrEqualTo(String value) {
            addCriterion("log_access_account >=", value, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountLessThan(String value) {
            addCriterion("log_access_account <", value, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountLessThanOrEqualTo(String value) {
            addCriterion("log_access_account <=", value, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountLike(String value) {
            addCriterion("log_access_account like", value, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountNotLike(String value) {
            addCriterion("log_access_account not like", value, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountIn(List<String> values) {
            addCriterion("log_access_account in", values, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountNotIn(List<String> values) {
            addCriterion("log_access_account not in", values, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountBetween(String value1, String value2) {
            addCriterion("log_access_account between", value1, value2, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessAccountNotBetween(String value1, String value2) {
            addCriterion("log_access_account not between", value1, value2, "logAccessAccount");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateIsNull() {
            addCriterion("log_access_date is null");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateIsNotNull() {
            addCriterion("log_access_date is not null");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateEqualTo(Date value) {
            addCriterion("log_access_date =", value, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateNotEqualTo(Date value) {
            addCriterion("log_access_date <>", value, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateGreaterThan(Date value) {
            addCriterion("log_access_date >", value, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateGreaterThanOrEqualTo(Date value) {
            addCriterion("log_access_date >=", value, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateLessThan(Date value) {
            addCriterion("log_access_date <", value, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateLessThanOrEqualTo(Date value) {
            addCriterion("log_access_date <=", value, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateIn(List<Date> values) {
            addCriterion("log_access_date in", values, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateNotIn(List<Date> values) {
            addCriterion("log_access_date not in", values, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateBetween(Date value1, Date value2) {
            addCriterion("log_access_date between", value1, value2, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessDateNotBetween(Date value1, Date value2) {
            addCriterion("log_access_date not between", value1, value2, "logAccessDate");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpIsNull() {
            addCriterion("log_access_ip is null");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpIsNotNull() {
            addCriterion("log_access_ip is not null");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpEqualTo(String value) {
            addCriterion("log_access_ip =", value, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpNotEqualTo(String value) {
            addCriterion("log_access_ip <>", value, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpGreaterThan(String value) {
            addCriterion("log_access_ip >", value, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpGreaterThanOrEqualTo(String value) {
            addCriterion("log_access_ip >=", value, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpLessThan(String value) {
            addCriterion("log_access_ip <", value, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpLessThanOrEqualTo(String value) {
            addCriterion("log_access_ip <=", value, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpLike(String value) {
            addCriterion("log_access_ip like", value, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpNotLike(String value) {
            addCriterion("log_access_ip not like", value, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpIn(List<String> values) {
            addCriterion("log_access_ip in", values, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpNotIn(List<String> values) {
            addCriterion("log_access_ip not in", values, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpBetween(String value1, String value2) {
            addCriterion("log_access_ip between", value1, value2, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessIpNotBetween(String value1, String value2) {
            addCriterion("log_access_ip not between", value1, value2, "logAccessIp");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleIsNull() {
            addCriterion("log_access_module is null");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleIsNotNull() {
            addCriterion("log_access_module is not null");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleEqualTo(String value) {
            addCriterion("log_access_module =", value, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleNotEqualTo(String value) {
            addCriterion("log_access_module <>", value, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleGreaterThan(String value) {
            addCriterion("log_access_module >", value, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleGreaterThanOrEqualTo(String value) {
            addCriterion("log_access_module >=", value, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleLessThan(String value) {
            addCriterion("log_access_module <", value, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleLessThanOrEqualTo(String value) {
            addCriterion("log_access_module <=", value, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleLike(String value) {
            addCriterion("log_access_module like", value, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleNotLike(String value) {
            addCriterion("log_access_module not like", value, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleIn(List<String> values) {
            addCriterion("log_access_module in", values, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleNotIn(List<String> values) {
            addCriterion("log_access_module not in", values, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleBetween(String value1, String value2) {
            addCriterion("log_access_module between", value1, value2, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessModuleNotBetween(String value1, String value2) {
            addCriterion("log_access_module not between", value1, value2, "logAccessModule");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunIsNull() {
            addCriterion("log_access_fun is null");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunIsNotNull() {
            addCriterion("log_access_fun is not null");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunEqualTo(String value) {
            addCriterion("log_access_fun =", value, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunNotEqualTo(String value) {
            addCriterion("log_access_fun <>", value, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunGreaterThan(String value) {
            addCriterion("log_access_fun >", value, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunGreaterThanOrEqualTo(String value) {
            addCriterion("log_access_fun >=", value, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunLessThan(String value) {
            addCriterion("log_access_fun <", value, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunLessThanOrEqualTo(String value) {
            addCriterion("log_access_fun <=", value, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunLike(String value) {
            addCriterion("log_access_fun like", value, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunNotLike(String value) {
            addCriterion("log_access_fun not like", value, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunIn(List<String> values) {
            addCriterion("log_access_fun in", values, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunNotIn(List<String> values) {
            addCriterion("log_access_fun not in", values, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunBetween(String value1, String value2) {
            addCriterion("log_access_fun between", value1, value2, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessFunNotBetween(String value1, String value2) {
            addCriterion("log_access_fun not between", value1, value2, "logAccessFun");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlIsNull() {
            addCriterion("log_access_url is null");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlIsNotNull() {
            addCriterion("log_access_url is not null");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlEqualTo(String value) {
            addCriterion("log_access_url =", value, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlNotEqualTo(String value) {
            addCriterion("log_access_url <>", value, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlGreaterThan(String value) {
            addCriterion("log_access_url >", value, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlGreaterThanOrEqualTo(String value) {
            addCriterion("log_access_url >=", value, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlLessThan(String value) {
            addCriterion("log_access_url <", value, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlLessThanOrEqualTo(String value) {
            addCriterion("log_access_url <=", value, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlLike(String value) {
            addCriterion("log_access_url like", value, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlNotLike(String value) {
            addCriterion("log_access_url not like", value, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlIn(List<String> values) {
            addCriterion("log_access_url in", values, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlNotIn(List<String> values) {
            addCriterion("log_access_url not in", values, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlBetween(String value1, String value2) {
            addCriterion("log_access_url between", value1, value2, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessUrlNotBetween(String value1, String value2) {
            addCriterion("log_access_url not between", value1, value2, "logAccessUrl");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultIsNull() {
            addCriterion("log_access_result is null");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultIsNotNull() {
            addCriterion("log_access_result is not null");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultEqualTo(String value) {
            addCriterion("log_access_result =", value, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultNotEqualTo(String value) {
            addCriterion("log_access_result <>", value, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultGreaterThan(String value) {
            addCriterion("log_access_result >", value, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultGreaterThanOrEqualTo(String value) {
            addCriterion("log_access_result >=", value, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultLessThan(String value) {
            addCriterion("log_access_result <", value, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultLessThanOrEqualTo(String value) {
            addCriterion("log_access_result <=", value, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultLike(String value) {
            addCriterion("log_access_result like", value, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultNotLike(String value) {
            addCriterion("log_access_result not like", value, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultIn(List<String> values) {
            addCriterion("log_access_result in", values, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultNotIn(List<String> values) {
            addCriterion("log_access_result not in", values, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultBetween(String value1, String value2) {
            addCriterion("log_access_result between", value1, value2, "logAccessResult");
            return (Criteria) this;
        }

        public Criteria andLogAccessResultNotBetween(String value1, String value2) {
            addCriterion("log_access_result not between", value1, value2, "logAccessResult");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}